﻿<%@ Page Language="C#" MasterPageFile ="~/Admin/MasterPage.master"  AutoEventWireup="true" CodeFile="DonHangList.aspx.cs" Inherits="Admin_DonHangList" %>

<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>
<asp:Content ID ="Content1" ContentPlaceHolderID ="menuPlaceHolder" runat ="server" >
    <h5 >Menu</h5>
    <ul class="Actions">
        <li class="Selected"><a href="donhanglist.aspx"  >Danh sách đơn hàng</a></li>
    </ul>
</asp:Content> 
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" Runat="Server">
<div style="padding:12px 12px 12px 12px;">
 <div>
    <div class="title">
        Danh sách đơn hàng
    </div>
    <div style="width:100%;">
            <div style="display:table-cell; width:100%;float:left;">
                Id đơn hàng: <asp:TextBox ID="txt_IdDH" runat="server"></asp:TextBox>
                <asp:Button ID="btn_Search" runat="server" Text="Tìm kiếm" OnClick="btn_Search_Click" />
            </div>
             
    </div>
    <div class="addnewrow">
    </div>                     
    <div>
    <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
        <HeaderTemplate>
            <table cellspacing="1" cellpadding="3" width="100%" bgcolor="#cccccc" border="0">
            <thead>
                <tr class="listtableheader">
                    <th>Mã đơn hàng</th>
                    <th>Khách hàng</th>
                    <th>Ngày đặt hàng</th>
                    <th>Ngày giao hàng</th>
                    <th>Trị giá</th>
                    <th>Đã giao</th>
                </tr>
            </thead>
            <tbody>
        </HeaderTemplate>
        <ItemTemplate>
          <tr>
            <td>
                <asp:HyperLink ID="hyp_DonHang" runat="server" />
                <asp:HiddenField ID="hf_ID" runat="server" />
            </td>
            <td>
                <asp:Literal ID="lit_KhachHang" runat="server"></asp:Literal>
            </td>
            <td><%#Eval("NgayDatHang") %></td>
            <td><%#Eval("NgayGiaoHang") %></td>
            <td><%#Eval("TriGia") %></td>
            <td>
                <asp:CheckBox ID="cb_DaGiao" runat="server" />
            </td>
          </tr>
        </ItemTemplate>
        <FooterTemplate>
        
            </tbody>
        </table>   
        </FooterTemplate>
    </asp:Repeater>  
    </div>
    
    <div style="width:100%;"> 
            <div style="float:left;">               
               <cc1:PagerV2_8 ID="PagerV2_8_1" runat="server"  OnCommand="pager_Command" ></cc1:PagerV2_8> 
            </div>
             <div style="float:right;">
            <asp:Button ID="btn_Update" runat="server" Text="Update" OnClick="btn_Update_Click" />
        </div>
    </div> 
 </div>
 </div>
</asp:Content>

